<template>

    <view class="container">
        <view class="item">
            <view class="item-box">
                <wd-text text="行走步数" color="#fff" bold />
                <wd-img :width="50" :height="50" :src="imageUrl" round />
            </view>
        </view>
        <view class="item">
            <view class="item-box">
                <wd-text text="运动时长" color="#fff" bold />
                <wd-img :width="50" :height="50" :src="imageUrl" round />
            </view>
        </view>
        <view class="item">
            <view class="item-box">
                <wd-text text="心跳指数" color="#fff" bold />
                <wd-img :width="50" :height="50" :src="imageUrl" round />
            </view>
        </view>
        <view class="item">
            <view class="item-box">
                <wd-text text="睡眠指数" color="#fff" bold />
                <wd-img :width="50" :height="50" :src="imageUrl" round />
            </view>
        </view>

    </view>


</template>

<script setup>
const imageUrl = uni.lan.getImage('test');
</script>

<style lang="scss" scoped>
.container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    grid-gap: 10px;
    padding: 10px;

    .item {
        background-color: #ccc;
        border-radius: 10px;
        height: 350rpx;

        &-box {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 20px;
        }
    }

    .item:nth-child(1) {
        background-color: #2d4f8a;
    }

    .item:nth-child(2) {
        background-color: #e9ca3b;
    }

    .item:nth-child(3) {
        background-color: #27d29f;
    }

    .item:nth-child(4) {
        background-color: #f8204d;
    }
}
</style>
